﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _17_Lambda表达式结合数组
{
    public class Person
    {
        //创建属性:姓名、年龄、性别、电话号码
        public string Name { get; set; }
        public int Age { get; set; }
        public string Gender { get; set; }
        public string PhoneNum { get; set; }
        
        public Person(string name, int age, string gender, string phoneNum)
        {
            Name = name;
            Age = age;
            Gender = gender;
            PhoneNum = phoneNum;
        }

        public void Print()
        {
            Console.WriteLine("姓名:{0}\t年龄:{1}\t性别:{2}\t电话号码:{3}", Name, Age, Gender, PhoneNum);
        }
        
    }
}
